<nz-modal [(nzVisible)]="Visible" nzWidth="800" [nzTitle]="popTitle" (nzOnCancel)="Cancel()" (nzOnOk)="Ok()" [nzOkLoading]="isLoading.Ok">
    <nz-descriptions nzTitle="" nzBordered nzSize="small">
        <nz-descriptions-item nzTitle="作业日期" [nzSpan]="2">
            <nz-date-picker [(ngModel)]="operaData.dtWorkdate"></nz-date-picker>
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="作业类型" [nzSpan]="2">
            {{operaData.vcProjecttype}}
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="作业项目" [nzSpan]="2">
            <nz-tree-select style="width: 175px" nzShowSearch [nzDropdownMatchSelectWidth]="false" [nzDropdownStyle]="treeNodeStyle"
                [nzNodes]="wxlxTree" nzPlaceHolder="请选择作业项目" (ngModelChange)="workProjectChange($event)"
                [(ngModel)]="operaData.vcProject">
            </nz-tree-select>
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="设备类型及分级" [nzSpan]="2">
            {{operaData.vcDevlevel}}
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="车间/工区/车站" [nzSpan]="3">
            <nz-select style="width:150px" (ngModelChange)="chejianChange($event)" [(ngModel)]="operaData.vcWsId">
                <ng-container *ngFor="let data of chejianList">
                    <nz-option nzCustomContent [nzValue]="data.opValue" [nzLabel]="data.opName">
                        {{data.opName}}
                    </nz-option>
                </ng-container>
            </nz-select>
            &nbsp;
            <nz-select *ngIf="gongquIf" style="width:150px" (ngModelChange)="gongquChange($event)"
                [(ngModel)]="operaData.vcWaId">
                <ng-container *ngFor="let data of gongquList">
                    <nz-option nzCustomContent [nzValue]="data.opValue" [nzLabel]="data.opName">
                        {{data.opName}}
                    </nz-option>
                </ng-container>
            </nz-select>
            &nbsp;
            <nz-select *ngIf="chezhanIf" style="width:150px" (ngModelChange)="chezhanChange($event)"
                [(ngModel)]="operaData.vcStaId">
                <ng-container *ngFor="let data of chezhanList">
                    <nz-option nzCustomContent [nzValue]="data.opValue" [nzLabel]="data.opName">
                        {{data.opName}}
                    </nz-option>
                </ng-container>
            </nz-select>
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="设备名称" [nzSpan]="3">
            <button nz-button style="float:left;margin-top:8px;" (click)="devName()" nzType="primary"
                nzGhost>选择</button> &nbsp;
            <textarea style="width:522px;" nz-input [(ngModel)]="operaData.vcDevname" readonly rows="2"></textarea>
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="设备分组" [nzSpan]="3">
            <textarea style="width:578px;" style="border:0" nz-input [(ngModel)]="operaData.vcDevgroupname" readonly
                rows="1"></textarea>
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="设备分组明细" [nzSpan]="3">
            <textarea style="width:578px;" style="border:0" nz-input [(ngModel)]="operaData.vcGroupDevName" readonly
                rows="2"></textarea>
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="作业等级" [nzSpan]="2">
            <nz-radio-group [(ngModel)]="operaData.vcLevel">
                <label nz-radio nzValue="0" checked>I级</label>
                <label nz-radio nzValue="1">II级</label>
            </nz-radio-group>
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="天窗" [nzSpan]="2">
            <nz-radio-group [(ngModel)]="operaData.vcNeekskywin">
                <label nz-radio nzValue="1" checked>需要</label>
                <label nz-radio nzValue="0">不需要</label>
            </nz-radio-group>
        </nz-descriptions-item>
        <nz-descriptions-item nzTitle="上道" [nzSpan]="2">
            <nz-radio-group [(ngModel)]="operaData.vcNeedroad">
                <label nz-radio nzValue="1" checked>需要</label>
                <label nz-radio nzValue="0">不需要</label>
            </nz-radio-group>
        </nz-descriptions-item>
    </nz-descriptions>
</nz-modal>

<app-equipmentmodal *ngIf="operaList.equipmentModal" [popTitle]="'设备选择'" [operaType]="'equipment'"
    [apiUrl]="apiUrl.equipment" [responseData]="operaData" [groupDevData]="operaData.vcGroupDevId"
    (closeModal)="modalHide('equipmentModal')" (reloadData)="equipmentValue($event)">
</app-equipmentmodal>